package com.project.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.project.bean.ClientBean;
import com.project.util.InfoResult;

import java.util.List;

/**
 * @author lyl
 * description:客户相关业务接口
 */
public interface IClientService {

    /**
     * 分页展示客户信息
     *
     * @param pageNum
     * @param clientName
     * @param clientScope
     * @return
     */
    Page<ClientBean> showClientByPage(int pageNum, String clientName, String clientScope);

    /**
     * 根据id查看客户详情信息
     *
     * @param clientId
     * @return
     */
    ClientBean findClientById(int clientId);

    /**
     * 添加新的客户
     *
     * @param clientBean
     * @return
     */
    InfoResult addClient(ClientBean clientBean);

    /**
     * 根据id更新客户部分信息
     *
     * @param clientId
     * @param clientPeo
     * @param clientTel
     * @param clientScope
     * @return
     */
    InfoResult updateClientById(int clientId, String clientPeo, String clientTel, String clientScope);


    List<ClientBean> showAll();
}

